package pages;

import org.openqa.selenium.WebDriver;

public class HomePage extends BasePage {

	
	public HomePage(WebDriver driver) {
		super(driver);	
	}
	
	public String searchForItem(String text){
		driver.findElement(searchBar).sendKeys(text);
		driver.findElement(saerchButton ).click();
		String textOfFirstLink = driver.findElement(firstLinkToSearchresult).getText(); 		
		return textOfFirstLink; 
	}
	
	

}
